package com.shop.entity;

import java.util.Objects;

//һ�������
public class GoodsFirstType {
    private int gtf_id;        //һ������id
    private String gtf_name;   //һ��������


    public GoodsFirstType(int gtf_id, String gtf_name) {
        this.gtf_id = gtf_id;
        this.gtf_name = gtf_name;
    }

    public int getGtf_id() {
        return gtf_id;
    }

    public void setGtf_id(int gtf_id) {
        this.gtf_id = gtf_id;
    }

    public String getGtf_name() {
        return gtf_name;
    }

    public void setGtf_name(String gtf_name) {
        this.gtf_name = gtf_name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsFirstType that = (GoodsFirstType) o;
        return gtf_id == that.gtf_id &&
                Objects.equals(gtf_name, that.gtf_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gtf_id, gtf_name);
    }

    @Override
    public String toString() {
        return "GoodsFirstType{" +
                "gtf_id=" + gtf_id +
                ", gtf_name='" + gtf_name + '\'' +
                '}';
    }

    public GoodsFirstType() {
    }


}

